// 将所有的axios请求写在一个文档中
import request from "../utils/request";
// 查询部门列表
export const queryAll =()=> request.get("/depts");
// 新增部门
export const add = (name)=>request.post("depts",name);
// 修改部门
export const update = (data)=>request.put("depts",data)
// 查询回显
export const queryById = (id)=>request.get(`depts/${id}`)
// 删除部门
export const deleteDept = (id)=>request.delete("depts?id="+id);